package com.fhm.mvpdemo01.api;

import com.fhm.mvpdemo01.api.bean.NewsInfo;

import java.util.List;
import java.util.Map;

import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Path;
import rx.Observable;

import static com.fhm.mvpdemo01.api.RetrofitService.CACHE_CONTROL_NETWORK;

public interface Api {


    @Headers(CACHE_CONTROL_NETWORK)
    @GET("nc/article/{type}/{id}/{startPage}-20.html")
    Observable<Map<String, List<NewsInfo>>> getNewsList(@Path("type") String type, @Path("id") String id,
                                                        @Path("startPage") int startPage);



}
